import request from '@/utils/request'

// 查询形状-轴孔列表
export function listAxle(query) {
  return request({
    url: '/hualian/axle/list',
    method: 'get',
    params: query
  })
}

// 查询形状-轴孔详细
export function getAxle(sphapeAxleId) {
  return request({
    url: '/hualian/axle/' + sphapeAxleId,
    method: 'get'
  })
}

// 新增形状-轴孔
export function addAxle(data) {
  return request({
    url: '/hualian/axle',
    method: 'post',
    data: data
  })
}

// 修改形状-轴孔
export function updateAxle(data) {
  return request({
    url: '/hualian/axle',
    method: 'put',
    data: data
  })
}

// 删除形状-轴孔
export function delAxle(sphapeAxleId) {
  return request({
    url: '/hualian/axle/' + sphapeAxleId,
    method: 'delete'
  })
}
